package structure_结构性.proxy_pattern_代理模式;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: hihi
 * @Date: 2020/07/07/14:41
 * @Description:
 */
public class RealImageDisplay implements Image {

	private String fileName;

	public RealImageDisplay(String fileName) {
		this.fileName = fileName;
		loadFile();
	}

	@Override public void display() {
		System.err.println(fileName + " display ...");
	}

	public void loadFile() {
		System.err.println(fileName + " loading ... ");
	}
}
